import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name:'home',
      meta: {
				title: '首页',
			},
      component: () =>
			import('@/page/home/index'),
    },
    {
      path: '/login',
      name: 'login',
      meta: {
				title: '登录',
			},
      component: () =>
			import('@/page/login/index'),
    },
    {
      path: '/forgetPassword',
      name: 'forgetPassword',
      meta: {
				title: '忘记密码',
			},
      component: () =>
			import('@/page/login/forgetPassword'),
    },
    {
      path: '/course',
      name: 'course',
      meta: {
				title: '课程中心',
			},
      component: () => import('@/page/course/courseList'),
		
   },
   {
      path: '/courseInfo',
      name: 'courseInfo',
      meta: {
				title: '课程详情',
			},
      component: () => import('@/page/course/courseInfo'),
		
   },
   
   {
      path: '/live',
      name: 'live',
      meta: {
				title: '直播中心',
			},
      component: () => import('@/page/live/liveList'),
		
   },
   {
      path: '/liveRoom',
      name: 'liveRoom',
      meta: {
				title: '直播间详情',
			},
      component: () => import('@/page/live/liveRoom'),
		
   },
   {
      path: '/articlelist',
      name: 'articlelist',
      meta: {
				title: '资讯列表',
			},
      component: () => import('@/page/article/articlelist'),
		
   },
   {
      path: '/articleInfo',
      name: 'articleInfo',
      meta: {
				title: '资讯详情',
			},
      component: () => import('@/page/article/articleInfo'),
		
   },
   {
      path: '/planList',
      name: 'planList',
      meta: {
				title: '培训列表',
			},
      component: () => import('@/page/plan/planList'),
		
   },
   {
      path: '/planInfo',
      name: 'planInfo',
      meta: {
				title: '培训详情',
			},
      component: () => import('@/page/plan/planInfo'),
		
   },
   {
      path: '/playing',
      name: 'playing',
      meta: {
				title: '学习大厅',
			},
      component: () => import('@/page/course/playing'),
		
   },
   {
      path: '/listening',
      name: 'listening',
      meta: {
				title: '学习大厅',
			},
      component: () => import('@/page/course/listening'),
		
   },
   {
      path: '/exam',
      name: 'exam',
      meta: {
				title: '考试',
			},
      component: () => import('@/page/exam/exam'),
      
		
   },
   {
      path: '/paperResults',
      name: 'result',
      meta: {
				title: '考试结果',
			},
      component: () => import('@/page/exam/paperResults'),
      
		
   },
   {
      path: '/examRecord',
      name: 'examRecord',
      meta: {
				title: '考试解析',
			},
      component: () => import('@/page/exam/examRecord'),
      
		
   },
   {
      path: '/uc',
      name: 'uc',
      meta: {
				title: '个人中心',
			},
      component: () => import('@/page/uc/home'),
       children: [
        {
          path: 'course',
          component: () => import('@/page/uc/course'),
        },
        {
          path: 'exam',
          component: () => import('@/page/uc/exam'),
        },
        {
          path: 'info',
          component: () => import('@/page/uc/info'),
        },
        {
          path: 'plan',
          component: () => import('@/page/uc/plan'),
        },
        {
          path: 'planInfo',
          component: () => import('@/page/uc/planInfo'),
        },
        {
          path: 'book',
          component: () => import('@/page/uc/book'),
        },
        {
          path: 'bookInfo',
          component: () => import('@/page/uc/bookInfo'),
        },
        
      ]
		
   },
   
  ]
})
